##### Test for /MULT /MULTU /MFHI /MFLO /MTHI /MTLO
	ori $29, $0, 12
	addi $8, $0, 0x11112222
	addi $9, $0, 0x22221111
	addi $10,$0, 0x22222222
	addi $11,$0, 0x22222222
	mthi $8
	mtlo $9
	mfhi $9
	mfhi $8
	multu $10,$11
	mfhi $8
	mflo $9
	mult $10,$11
	mfhi $8
	mflo $9

##### Test for /DIV /DIVU
	addi $8, $0, 0xffffaaaa
	addi $9, $0, 0x33332222
	addi $10,$0, 0x77778888
	addi $11,$0, 0x55556666
	mthi $8
	mtlo $9
	mfhi $9
	mfhi $8
	addi $8, $0, 0x00000001
	addi $9, $0, 0x00000001
	addi $12,$0, 0x12345678
	addi $13,$0, 0xfffff100
###
	addi $15,$0,0xfffffffe
	_lb1:
	divu $10,$11
	beq $8,$9,_lb2
	addi $0,$0,0x00000000
	mfhi $8
	mflo $9
###
	_lb2:
	div $10,$11
	mfhi $8
	mflo $9
	
	addi $15,$15,0x0001
	blez $15,_lb1
	addi $0,$0,0x00000000
###

	addi $9,$0,0x0005
	addi $10,$0,0x0002
	_lb3:
	addi $9,$9,0x0001
	sw $10, 16($sp)
	sw $9,12($sp)
	lw $10,12($sp)
	lw $9,16($sp)
	div $10,$9
	mfhi $10 
	mflo $9
	addi $10,$10,0x0001
	beq $10,$9,_lb3
	addi $0,$0,0x00000000
	mthi $13
	mtlo $12
###
	addi $10,$0,0x0001
	addi $8,$0,0x0009
	addi $9,$0,0x0003
	_lb4:
	mthi $8
	mtlo $9
	div $8,$9
	mfhi $8
	mflo $9
	addi $8,$8,0x0001
	beq $8,$10,_lb4
	addi $0,$0,0x00000000
	xor $8,$12,$13
	divu $12,$13
###
	addi $10,$0, 0x77778888
	addi $11,$0, 0x55556666
	mthi $11
	mtlo $10
	multu $10,$11
	mfhi $11
	mflo $10
	divu $10,$11
	mflo $10
	mfhi $11
	mult $10,$11
	mflo $10
	mfhi $11
	div $10,$11
	mtlo $11
	mthi $10

###
	addi $8,$0,0x0001
	addi $9,$0,0x000a
	addi $10,$0, 0x7f7f
	addi $11,$0, 0x4399
	sw $10, 16($sp)
	sw $11,12($sp)
	
	_lb5:
	addi $8,$8,0x0001
	lw $10,12($sp)
	lw $11,16($sp)
	div $10,$11
	beq $8,$9,_lb6
	addi $0,$0,0x00000000
	j _lb5
	addi $0,$0,0x00000000
	_lb6:
	mflo $10
	mfhi $11
	
	
